<%@ page language="java" contentType="text/html; charset=UTF-8" %>
<%@ include file="/jsplib/pubhead.jsp"%>
<%@ page import="net.comm.common.ValueMaping" %>
<%@ taglib uri="/WEB-INF/myTaglib.tld" prefix="tag"%>
<%@ taglib prefix="myfn" uri="/WEB-INF/jstlfun.tld" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<meta http-equiv="x-ua-compatible" content="ie=7" />
	<TITLE>关键词维护:职业生涯档案</TITLE>
 	<meta name="Keywords" content="人力资源 职业开发 评价 广东 就业 职业生涯档案 省职业技能鉴定指导中心 社区 职业分类" />
	<meta name="Description" content="人力资源职业能力开发评价公共服务平台是广东省职业技能鉴定指导中心建设的平台，是集职业能力需求调查与分析、职业能力评价和职业能力开发应用“三位一体”的公共服务平台，功能包括：新职业需求调查、职业标准完善、题库开发及运用管理、考务管理、质量督导到证书发放、职业能力提升及应用、职业生涯档案等。" />
  <link rel="stylesheet" type="text/css" href="${cpath}/css/gloab.css"/>
	<link rel="stylesheet" type="text/css" href="${cpath}/css/admin.css" />
	<link rel="stylesheet" type="text/css" href="${cpath}/css/group.css" />
	
</head>
<body>
<script> 
	//转页面
	var curUserID = '${userID}';
	if((curUserID == "")||(curUserID == null)){
//		parent.window.location.replace("${cpath}/index.jsp"); 
	}
</script>

		<DIV id=group>

		<!-- 右侧宽栏 {{{ -->
		<DIV class=group_mid>

			<div class='subtop' >
					<p><a href="#"><img src="${cpath}/images/png-0222.png" ></a></p>
				<dl >
					<dd class="info"><a>编辑关键词</a></dd>
				</dl>
				<div class='fun'>
					<li><a href="javascript:history.go(-1);">返回上一页</a></li>
				</div>
			</div>
			<DIV class='whole'><!-- 右侧宽栏 }}}-->
				<form action="${cpath}/tags.do" name="theForm"  method="post" enctype="multipart/form-data" >
					<UL class=detailinfo>
						<LI><STRONG>关&nbsp;&nbsp;键&nbsp;&nbsp;词:</STRONG><EM>
								<input type="text" name='tagsname' value='${theForm.tagsname}' maxlength="100" class="long"/></EM></LI>
						<LI><STRONG>超&nbsp;&nbsp;链&nbsp;&nbsp;接:</STRONG><EM>
								<input type="text" name='url' value='${theForm.url}' maxlength="200" class="long"/></EM></LI>
						<LI><STRONG>优&nbsp;&nbsp;先&nbsp;&nbsp;级:</STRONG><EM>
								<input type="text" name='pri' value='${theForm.pri}' maxlength="10" class="short"/></EM></LI>
						<LI><STRONG>用&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;途:</STRONG><EM>
							<input type="text" name='purpose' value='${theForm.purpose}' maxlength="10" class="short"/></EM></LI>

							<input type="hidden" name='tagsID'			value='${theForm.tagsID}'/>
							<input type="hidden" name='tagsLength'	value='${theForm.tagsLength}'/>
							<input type="hidden" name='action'	value=''/>
					</UL><!--结束 }}}-->
					<UL class=detailinfo>
						<li class=btn>	
							<input type="button" name="save"  id="save" onclick="javascript:doConfirm();" class="shortBtn" value="保   存"/>&nbsp;
							<input type="button" name="cancel"  id="cancel" onclick="javascript:doCancel();" class="shortBtn" value="取   消"/>&nbsp;
						</li>
					</UL>
				</form>
			</DIV><!-- whole end }}} -->			

			</DIV><!-- content }}} -->
		</DIV><!-- profile_mid }}} -->
		</DIV><!-- group end }}} -->
</body>
</html>
<!---->
<script>
    /**
     * 检查项目资料维护
     */
	function doConfirm()
	{
		var form = document.theForm;

		var action = form['action'];
		var tagsname = form['tagsname'];

		if(tagsname.value == null||tagsname.value.replace(/(^\s*)|(\s*$)/g,"").length < 1)
  	{
			alert('名称不能为空');
			tagsname.select();
			return ;
		}

    form.submit();
	}

	/**
   * 根据具体请求设置各个组件状态	
   */
  function showState()
	{
		var action = '${theForm.action}';
		var form = document.theForm;		
		if(action == 'detail')
		{
           
			document.getElementById("back").style.display = "none";

		}
		else if(action == 'modifyPage' || action == 'update')
		{

			form['action'].value = 'update';
		}else{

			form['action'].value = 'add';
		}

	}
	showState();


</script>

